/**
   包含对 antd 组件样式的封装 
*/
@import "~ant-design-vue/dist/antd.css";

[class^="ant-"] {
  font-size: 0.18rem;
}

.ant-form label,
textarea.ant-textarea,
input.ant-input,
div.ant-input,
.ant-input.ant-input-disabled {
  font-size: 0.18rem;
}

.ant-form {
  margin-top: 12px;
}

.ant-form-item {
  margin-bottom: 0.24rem;
}

.ant-form-item-with-help {
  margin-bottom: 0px;
}

.ant-form-explain {
  height: 1.7em;
}

.ant-menu {
  .ant-menu-item,
  .ant-menu-submenu-title {
    width: 100%;
  }
}

/* tree 组件 */
.ant-tree {
  @include size();
  overflow: auto;
}

/** table 表格 */

.ant-table {
  .ant-table-title {
    padding: $ContainerPadding;
    border-top: none;
  }

  .ant-table-row.select-active {
    background: #e6f7ff;
  }

  .ant-table-thead > tr.ant-table-row-selected > td,
  .ant-table-tbody > tr.ant-table-row-selected > td,
  .ant-table-thead > tr:hover.ant-table-row-selected > td,
  .ant-table-tbody > tr:hover.ant-table-row-selected > td {
    background: #1890ff20;
  }
}

/* tabs 组件*/
.ant-tabs {
  @include size();
  .ant-tabs-bar {
    margin: 0;
  }
}

/* select */
.ant-select {
  @include size();
}

/* divider */
.ant-divider-horizontal.ant-divider-with-text-center::before,
.ant-divider-horizontal.ant-divider-with-text-left::before,
.ant-divider-horizontal.ant-divider-with-text-right::before,
.ant-divider-horizontal.ant-divider-with-text-center::after,
.ant-divider-horizontal.ant-divider-with-text-left::after,
.ant-divider-horizontal.ant-divider-with-text-right::after {
  transform: translateY(0%);
}

.ant-empty {
  @include size();
  @include flex(column, center, center);
}

.ant-calendar-picker {
  @include size();
}

.ant-spin,
.ant-spin-nested-loading,
.ant-spin-container {
  @include size();
}

.ant-spin-nested-loading > div > .ant-spin {
  max-height: none;
  .ant-spin-dot {
    font-size: 30px;
    .ant-spin-dot-item {
      font-size: 14px;
    }
  }
}

.ant-modal-body {
  max-height: 68vh;
  overflow: auto;
}

li.ant-select-dropdown-menu-item {
  font-size: 0.18rem;
}